package com.clgc.eduservice.service;

import com.clgc.eduservice.entity.EduTeacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.clgc.utils.R;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

import java.util.List;

/**
 * <p>
 * 老师表 服务类
 * </p>
 *
 * @author testjava
 * @since 2021-04-27
 */
public interface EduTeacherService extends IService<EduTeacher> {

    /**
     * 老师登录
     *
     * @param id
     * @param pwd
     * @param request
     * @return
     */
    R login(String id, String pwd, HttpServletRequest request);

    /**
     * 获取当前老师账户信息
     *
     * @param s
     * @return
     */
    EduTeacher getTeacherByUsername(String s);

    /**
     * 更新当前老师信息
     *
     * @param eduTeacher
     * @return
     */
    //老师注册
    Boolean teacherRegister(EduTeacher eduTeacher);

    //老师管理账户
    //更改密码
    boolean updateEduTeacher(EduTeacher eduTeacher);

}
